
package com.verify.repository;

import com.baomidou.mybatisplus.extension.service.IService;
import com.verify.data.domain.AreaEntity;
import com.verify.data.domain.PersonUp;
import com.verify.mapper.AreaEntityMapper;
import com.verify.mapper.PersonUpMapper;
import com.verify.repository.base.BaseRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class AreaEntityRepository extends BaseRepository<AreaEntityMapper, AreaEntity>
        implements IService<AreaEntity> {

    public AreaEntity getByName(String name) {
        return getOne(baseQuery().eq(AreaEntity::getName, name));
    }
}
